<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>DGPT4537 Assignment1</title>
    <!-- 引入Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f8f9fa;
            color: #343a40;
            font-family: 'Arial', sans-serif;
        }
        .container {
            margin-top: 40px;
        }
        h1.text-center {
            margin-bottom: 30px;
            color: #0056b3;
        }
        .hero-list {
            list-style-type: none;
            padding-left: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }
        .hero-item {
            flex: 1 1 calc(33.333% - 40px); /* 适应三列布局 */
            min-width: 200px;
            margin-bottom: 20px;
            padding: 20px;
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-align: center;
        }
        .hero-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }
        .hero-item a {
            color: #007bff;
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: bold;
            transition: color 0.2s ease;
        }
        .hero-item a:hover {
            color: #0056b3;
        }
        .home-link {
            display: block;
            margin-top: 40px;
            text-align: center;
        }
        .btn-custom {
            background: linear-gradient(135deg, #ff6f61, #ec407a);
            color: #fff;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .btn-custom:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
    </style>
</head>
<body>

    <!-- 使用Bootstrap的容器 -->
    <div class="container">
        <h1 class="text-center">List of Mythical Characters</h1>
        <ul class="hero-list">
            {records}
            <li class="hero-item">
                <p><a href="/hockey/showme/{id}" class="stretched-link">{name}</a></p>
            </li>
            {/records}
        </ul>
        <p class="home-link">
            <a href="/home" class="btn btn-custom">Home</a>
        </p>
    </div>

    <!-- 引入Bootstrap JS和依赖 -->
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
</body>
</html>